package com.noahplat.fence.pojo;


import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

@Data
@Table(name = "tb_fencere")
public class Fencere {

    @NotNull(message = "设备唯一标识不能为空")
    @Length(max = 32, message = "长度不能超过32位")
    private String imei;        //设备唯一标识
    @Id
    private Long fid;             //围栏ID
}
